var Rankitem = (function(){
    function Rankitem(content,guideType,close_handler) {
        Rankitem.super(this);
    }

    Laya.class(Rankitem, 'ui.rankitem', RankitemUI);

    Rankitem.prototype.initItem = function(){
		this.size(950, 160);
		this.icon = new Laya.Image();
        this.icon.x = 20;
        this.icon.y = 20;
        this.icon.width = 120;
        this.icon.height = 120;
        this.nick = new Laya.Text()
        this.nick.x = 180;
        this.nick.y = 40;
        this.nick.width = 450;
        this.nick.height = 80;
        this.nick.fontSize = 50;
        this.nick.align = "left";
        this.nick.valign = "middle";
        this.score = new Laya.Text()
        this.score.x = 700;
        this.score.y = 40;
        this.score.width = 220;
        this.score.height = 80;
        this.score.fontSize = 50;
        this.score.align = "right";
        this.score.valign = "middle";

		this.addChild(this.icon);
        this.addChild(this.nick);
        this.addChild(this.score);
		
    };
    Rankitem.prototype.setItem = function(itemData){
        this.itemIcon.skin = itemData.icon;
        this.itemNick.text = itemData.nick;
        this.itemScore.text = itemData.score;
	}


    return Rankitem;
})();